import type { profileType } from '@renderer/store/modules/login/type'

interface ResPublicCode {
    code: number
    msg: string
}

// 扩展信息接口，继承基础信息接口
export interface TopicInType extends baseTopicType {
    isJoin?: boolean | null;
    paidPosts?: string[] | null;
    isPayVip?: boolean | null;
    previewImages?: any[] | null; 
    // topPost?: PlistItemModel[] | null;
}


export interface baseTopicType {
    isPay?: number | null;
    payMoney?: number | null;
    isOpenWechat?: number | null;
    wechat?: string | null;
    wechatPrice?: number | null;
    isOpenVip?: number | null;
    vipPrice?: string | null;
    isChatCharge?: number | null;
    chatPrice?: number | null;
    introduce?: string | null;
    previewImage?: string | null;
    monitorPercent?: number | null;
    shareUrl?: string | null;
    shortUrl?: string | null;
    id?: number | null;
    uid?: number | null;
    cateId?: number | null;
    topicName?: string | null;
    description?: string | null;
    coverImage?: string | null;
    bgImage?: string | null;
    topType?: number | null;
    status?: number | null;
    indexRecommend?: number | null;
    userNum?: number | null;
    createTime?: string | null;
    userInfo?: profileType | null;
    postCount?: number | null;
    userCount?: number | null;
    rest?: number | null;
    question?: string | null;
    isPrivacy?: number | null;
}

export interface RecommendTopicResponseType extends ResPublicCode{
    "result": baseTopicType[]
}


